package com.flying.oop.poly;

/**
 * @ClassName: Student
 * @author: 刘鹏飞
 * @date 2023/7/168:37
 * @Description: 学生
 */
public class Student extends Person{
    public int x=5;
    public int classes;

    public Student() {
    }

    public Student(int id,String name, int age) {
        super(id,name, age);
    }

    @Override
    public void sleep() {
        System.out.println("学生正在睡觉");
    }

    public void study(){
        System.out.println("学生正在学习");
    }
}
